<?php
	function GetConnection(){
	$conn = new mysqli('localhost', 'plotkinm', 'FaceBooK', 'plotkinm_db');
	if($conn->error){
		throw new Exception($conn->error, 1);
	}
	return $conn;	
	}
	
	function GetZipcodes(){
		$conn = GetConnection();
		return $results = $conn -> query('SELECT * FROM US_Zip_Codes');
	}
		
	function GetZipcodeCityPair(){
		$conn = GetConnection();
		return $reults = $conn -> query('SELECT `zip`, `city` FROM `US_Zip_Codes`');	
	}

